/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.penguin.modules.field.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.modules.sys.entity.Area;
import com.thinkgem.jeesite.modules.sys.entity.Office;

import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 商家信息管理维护Entity
 * @author 余小凡
 * @version 2015-05-20
 */
public class FieldCustomer extends DataEntity<FieldCustomer> {
	
	private static final long serialVersionUID = 1L;
	private String code;		//商家编码
	private String name;		// 商家名称
	private String contact;		// 联系人
	private String phone;		// 联系电话
	private Area area;		// 地址
	private String address;		// 详细地址 
	private String rate;		// 签约汇率
	private Integer pNumber;		// 机器数
	private String deposit;		// 押金
	private User salesman;		// 销售负责人
	private String stores;		// 门店数
	private Office office;			//所属机构
	private String type;		//商家类型
	private String password;	//密码
	private String fillTime;	//签约时间
	private String wexin;		//是否绑定微信
	
	
	public FieldCustomer() {
		super();
	}

	public FieldCustomer(String id){
		super(id);
	}
	@Length(min=0, max=50, message="商家编码长度必须介于 0 和 50 之间")
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	@Length(min=0, max=50, message="商家名称长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=20, message="联系人长度必须介于 0 和 20 之间")
	public String getContact() {
		return contact;
	}

	public void setContact(String contact) {
		this.contact = contact;
	}
	
	@NotNull(message="地址不能为空")
	public Area getArea() {
		return area;
	}

	public void setArea(Area area) {
		this.area = area;
	}
	
	@Length(min=0, max=200, message="详细地址长度必须介于 0 和 200 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=14, message="联系电话长度必须介于 0 和 14 之间")
	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String getRate() {
		return rate;
	}

	public void setRate(String rate) {
		this.rate = rate;
	}
	
	public Integer getPNumber() {
		return pNumber;
	}

	public void setPNumber(Integer pNumber) {
		this.pNumber = pNumber;
	}
	
	public String getDeposit() {
		return deposit;
	}

	public void setDeposit(String deposit) {
		this.deposit = deposit;
	}
	
	public User getSalesman() {
		return salesman;
	}

	public void setSalesman(User salesman) {
		this.salesman = salesman;
	}
	
	@Length(min=0, max=11, message="门店数长度必须介于 0 和 11 之间")
	public String getStores() {
		return stores;
	}

	public void setStores(String stores) {
		this.stores = stores;
	}

	public Integer getpNumber() {
		return pNumber;
	}

	public void setpNumber(Integer pNumber) {
		this.pNumber = pNumber;
	}

	public Office getOffice() {
		return office;
	}

	public void setOffice(Office office) {
		this.office = office;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getFillTime() {
		return fillTime;
	}

	public void setFillTime(String fillTime) {
		this.fillTime = fillTime;
	}

	public String getWexin() {
		return wexin;
	}

	public void setWexin(String wexin) {
		this.wexin = wexin;
	}
	
}